package com.bolt.admin.module.quartz.dto;

import com.bolt.convention.data.BaseDTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class JobLogDTO extends BaseDTO {
    /**
    ** ID
    **/
    private String id;
        
    /**
    ** Spring Bean名称
    **/
    @ApiModelProperty(notes = "Spring Bean名称")
    private String  beanName;
        
    /**
    ** 创建日期
    **/
    @ApiModelProperty(notes = "创建日期")
    private Date  createTime;
        
    /**
    ** cron 表达式
    **/
    @ApiModelProperty(notes = "cron 表达式")
    private String  cronExpression;
        
    /**
    ** 异常信息
    **/
    @ApiModelProperty(notes = "异常信息")
    private String  exceptionDetail;
        
    /**
    ** 是否成功
    **/
    @ApiModelProperty(notes = "是否成功")
    private Boolean  isSuccess;
        
    /**
    ** 任务名称
    **/
    @ApiModelProperty(notes = "任务名称")
    private String  jobName;
        
    /**
    ** 方法名称
    **/
    @ApiModelProperty(notes = "方法名称")
    private String  methodName;
        
    /**
    ** 参数
    **/
    @ApiModelProperty(notes = "参数")
    private String  params;
        
    /**
    ** 耗时
    **/
    @ApiModelProperty(notes = "耗时")
    private Long  time;
        
    /**
    ** 本次触发时间
    **/
    @ApiModelProperty(notes = "本次触发时间")
    @JsonFormat(pattern = "yyyy-MM-dd hh:ss:mm",timezone = "GMT+8")
    private Date  fireTime;
        
    /**
    ** 上次触发时间
    **/
    @ApiModelProperty(notes = "上次触发时间")
    @JsonFormat(pattern = "yyyy-MM-dd hh:ss:mm",timezone = "GMT+8")
    private Date  previousFireTime;
        
    /**
    ** 下次触发时间
    **/
    @ApiModelProperty(notes = "下次触发时间")
    @JsonFormat(pattern = "yyyy-MM-dd hh:ss:mm",timezone = "GMT+8")
    private Date  nextFireTime;
        
    /**
    ** 触发次数
    **/
    @ApiModelProperty(notes = "触发次数")
    private Integer  fireCount;



}